package cn.nihao365.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhu hui (zhuhui@nihao365.cn)
 * @version 1.0
 * @date 2021-10-28 21:31:13
 */
@Controller
public class LoginController{

    @RequestMapping(value = "/login")
    public String login(Model model){
        System.out.println("2.----LoginController.login");
        model.addAttribute("message","这是一个登录页面");
        return "login/index";
    }

}
